<%--
  Created by IntelliJ IDEA.
  User: teacher
  Date: 2023/7/17
  Time: 10:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Ajax跨域</title>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-3.4.1.min.js"></script>
    <script>
        function aa(a){
            console.log(a)
        }
        function f1(){
            let s = $("<script>");
            s.attr("type","text/javascript");
            s.attr("src","http://192.168.111.31:8080/ajax/jp?callback=aa");
            $("body").append(s);
        }
    </script>
    <%--<script type="text/javascript" src="http://192.168.111.31:8080/ajax/jp"></script>--%>
</head>
<body>
<button onclick="f1()">测试</button>
</body>
</html>
